/*
 * @Author: xiaosihan
 * @Date: 2024-06-25 02:41:12
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-07-23 22:33:40
 */

import utils from "@utils";
import { isEmpty } from "lodash";
import { observable, configure } from "mobx";
configure({ enforceActions: "never" });

const loginStore = observable(
  {
    // 登录方式
    loginType: "sms_login" as "wx_login" | "bind_phone" | "sms_login",
    setLoginType(loginType: "wx_login" | "bind_phone" | "sms_login") {
      this.loginType = loginType;
    },

    // 显示登录弹窗
    showLoginModal: false,
    async setShowLoginModal(showLoginModal: boolean) {
      this.showLoginModal = showLoginModal;
    },
  },
  {},
  { deep: false }
);

export default loginStore;
